package com.ruoyi.stu.dto;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class CourseUnitDto {
    private Integer code;
    private String msg;
    private CourseDto data;

	@Data
	@AllArgsConstructor
    public static class CourseDto {
        private String courseName;
        private Long courseId;
        private List<CourseFunctionDto> functions;
    }

	@Data
	@AllArgsConstructor
    public static class CourseFunctionDto {
        private String type;
        private String name;
        private List<UnitDto> units;
    }

	@Data
	@AllArgsConstructor
    public static class UnitDto {
        private Long unitId;
        private String unitName;
        private String status;
    }
}